package com.ruoyi.project.gxgw_modules.chargeLog.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 支付记录表 cxj_charge_log
 * 
 * @author ruoyi
 * @date 2019-01-19
 */
public class ChargeLog extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 支付订单编号 */
	private Integer chargeLogId;
	/** 用户编号 */
	private Integer userId;
	/** 支付总额 */
	private Float chargeAmount;
	/** 交易时间 */
	private Date chargeTime;
	/** 商品描述 */
	private String body;
	/** 支付方式:(支付宝，微信) */
	private String chargeWay;
	/** 支付状态(0：未支付;1支付成功;2:支付失败;3:退款成功) */
	private Integer payState;
	/** 商户订单号 */
	private String outTradeNo;
	/** 支付单号 */
	private String transactionId;
	/** 删除状态(0：未删除，1：删除) */
	private String delFlag;
	
	/** 按照时间范围查询，今日，昨日，七天之类*/
	private String time;

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public void setChargeLogId(Integer chargeLogId) 
	{
		this.chargeLogId = chargeLogId;
	}

	public Integer getChargeLogId() 
	{
		return chargeLogId;
	}
	public void setUserId(Integer userId) 
	{
		this.userId = userId;
	}

	public Integer getUserId() 
	{
		return userId;
	}
	public void setChargeAmount(Float chargeAmount) 
	{
		this.chargeAmount = chargeAmount;
	}

	public Float getChargeAmount() 
	{
		return chargeAmount;
	}
	public void setChargeTime(Date chargeTime) 
	{
		this.chargeTime = chargeTime;
	}

	public Date getChargeTime() 
	{
		return chargeTime;
	}
	public void setBody(String body) 
	{
		this.body = body;
	}

	public String getBody() 
	{
		return body;
	}
	public void setChargeWay(String chargeWay) 
	{
		this.chargeWay = chargeWay;
	}

	public String getChargeWay() 
	{
		return chargeWay;
	}
	public void setPayState(Integer payState) 
	{
		this.payState = payState;
	}

	public Integer getPayState() 
	{
		return payState;
	}
	public void setOutTradeNo(String outTradeNo) 
	{
		this.outTradeNo = outTradeNo;
	}

	public String getOutTradeNo() 
	{
		return outTradeNo;
	}
	public void setTransactionId(String transactionId) 
	{
		this.transactionId = transactionId;
	}

	public String getTransactionId() 
	{
		return transactionId;
	}
	public void setDelFlag(String delFlag) 
	{
		this.delFlag = delFlag;
	}

	public String getDelFlag() 
	{
		return delFlag;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("chargeLogId", getChargeLogId())
            .append("userId", getUserId())
            .append("chargeAmount", getChargeAmount())
            .append("chargeTime", getChargeTime())
            .append("body", getBody())
            .append("chargeWay", getChargeWay())
            .append("payState", getPayState())
            .append("outTradeNo", getOutTradeNo())
            .append("transactionId", getTransactionId())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
